﻿@model Orchard.Layouts.ViewModels.SnippetFieldViewModel

@{
    var field = Model;
}

<div class="form-group">
    @Html.Label(field.Descriptor.Name, field.Descriptor.DisplayName?.Text ?? field.Descriptor.Name)

    @Html.TextBox(field.Descriptor.Name, field.Value, new { @class = "text large" })

    @if (field.Descriptor.Description != null) {
        @Html.Hint(field.Descriptor.Description)
    }
</div>